package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Menu;
import cn.wolfcode.crm.query.MenuQueryObj;

import java.util.List;

public interface MenuMapper {
    int deleteByPrimaryKey(Long id);

    Menu selectByPrimaryKey(Long id);

    List<Menu> selectAll();

    List<Menu> selectAllParent();

    List<Integer> listIdsByRoleId(Long roleId);

    List<Long> listMenuIdsByEmployeeId(Long employeeId);


    List<Menu> selectChildByParentId(Long parentId);

    void insert(Menu menu);
}